import request from '@/utils/request'


export function getList(data) {
  return request({
    url: '/whatsapp/getList',
    method: 'post',
    data
  })
}

export function getStatus(data) {
  return request({
    url: '/whatsapp/getStatus',
    method: 'post',
    data
  })
}

export function restart(data) {
  return request({
    url: '/whatsapp/restart',
    method: 'post',
    data
  })
}


export function send(data) {
  return request({
    url: '/whatsapp/send',
    method: 'post',
    data
  })
}

export function sendV2(data) {
  return request({
    url: '/whatsapp/v2/send',
    method: 'post',
    data
  })
}


export function changeProxy(data) {
  return request({
    url: '/whatsapp/changeProxy',
    method: 'post',
    data
  })
}

export function changeName(data) {
  return request({
    url: '/whatsapp/changeName',
    method: 'post',
    data
  })
}

export function changeDeviceCountry(data) {
  return request({
    url: '/whatsapp/changeDeviceCountry',
    method: 'post',
    data
  })
}

export function getMessageList(data) {
  return request({
    url: '/whatsapp/getMessageList',
    method: 'post',
    data
  })
}

export function sendMessageList(data) {
  return request({
    url: '/whatsapp/sendMessageList',
    method: 'post',
    data
  })
}

export function preBoot(data) {
  return request({
    url: '/whatsapp/preBoot',
    method: 'post',
    data
  })
}

export function unlockSend(data) {
  return request({
    url: '/whatsapp/unlockSend',
    method: 'post',
    data
  })
}

export function lockSend(data) {
  return request({
    url: '/whatsapp/lockSend',
    method: 'post',
    data
  })
}

export function kill(data) {
  return request({
    url: '/whatsapp/kill',
    method: 'post',
    data
  })
}

export function sleepInstance(data) {
  return request({
    url: '/whatsapp/sleepInstance',
    method: 'post',
    data
  })
}

export function reply(data) {
  return request({
    url: '/whatsapp/reply',
    method: 'post',
    data
  })
}

export function instanceOpearByCountry(data) {
  return request({
    url: '/whatsapp/instanceOpearByCountry',
    method: 'post',
    data
  })
}

export function getDeviceList(data) {
  return request({
    url: '/whatsapp/getDeviceList',
    method: 'post',
    data
  })
}

export function delDevice(data) {
  return request({
    url: '/whatsapp/delDevice',
    method: 'post',
    data
  })
}

export function getConfig(data) {
  return request({
    url: '/whatsapp/getConfig',
    method: 'post',
    data
  })
}

export function saveConfig(data) {
  return request({
    url: '/whatsapp/saveConfig',
    method: 'post',
    data
  })
}

export function changeDeviceLabel(data) {
  return request({
    url: '/whatsapp/changeDeviceLabel',
    method: 'post',
    data
  })
}
